package com.fingard.dsp.bank.directbank.cgb02;

import com.fingard.dsp.bank.directConfig.TaskTimerSet;
import com.fingard.dsp.bank.directbank.bankInterface.IScheduleTask;
import com.fingard.dsp.bank.directbank.cgb02.receiptPro.CGB02TaskReceiptPro;
import com.fingard.dsp.bank.directbank.cmb01.receiptpro.CMB01TaskReceiptPro;

/**
 * @Description TODO
 * @Author xtt
 * @Date $ $
 **/
public class CGB02ScheduleTask extends CGB02Base implements IScheduleTask {
    @Override
    public void execTask(TaskTimerSet timerSet) {
        try {
            if (timerSet.taskNameList.toLowerCase().contains("downreceiptpro")) {
                CGB02TaskReceiptPro taskReceiptPro = new CGB02TaskReceiptPro();
                taskReceiptPro.reqHeader = this.reqHeader;
                taskReceiptPro.bankFront = this.bankFront;
                taskReceiptPro.setSbLog(this.sbLog);
                taskReceiptPro.setLogFlushTime(this.logFlushTime);
                taskReceiptPro.downReceipt(timerSet);
            }
        } catch (Exception ex) {
            this.WriteBankLogLn(ex);
        }
    }
}
